package cn.edu.neusoft.practice.Controller;

//import cn.edu.neusoft.practice.common.Result;
import cn.edu.neusoft.practice.mapper.RegistrationMapper;
import cn.edu.neusoft.practice.po.Doctor;
import cn.edu.neusoft.practice.po.Registration;
import io.swagger.annotations.Api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@Api("RegistrationController相关的api")
@RestController
public class RegistrationController {
    @Autowired
    private RegistrationMapper registrationMapper;
    
    @RequestMapping("/getRegistration")
    @ResponseBody
    public List<Registration> registration(Registration registration){
        List<Registration> list=registrationMapper.getRegistration(registration);
        //return Result.ok(list);
        return list;
    }

}